package com.zut.dao;

import com.zut.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author sq
 * @create 2021-07-01-15:31
 */
public interface OrderSettingDao {

    //添加预约信息
    public void add(OrderSetting orderSetting);

    //根据日期查询当天已经进行预约设置的记录数
    public long findCountByOrderDate(Date orderDate);

    //根据日期更新预约信息
    public void editNumberByOrderDate(OrderSetting orderSetting);

    //根据日期范围查询
    public List<OrderSetting> getOrderSettingByMonth(Map<String, String> dateMap);

    //根据日期编辑可预约人数
    public void editNumberByDate(OrderSetting orderSetting);

    //根据预约日期查询预约设置实体类
    public OrderSetting findByOrderDate(Date parseString2Date);

    //根据预约日期编辑更新已预约人数
    public void editReservationsByOrderDate(OrderSetting orderSetting);

}
